#include <51func.h>
int main(int argc, char *argv[])
{
    // ./5_open_write 1.pipe 
    ARGS_CHECK(argc,2);
    int fdw = open(argv[1],O_WRONLY);
    ERROR_CHECK(fdw,-1,"open");
    printf("write side is opened!\n");
    sleep(10);
    printf("sleep over!\n");
    write(fdw,"howareyou",9);
    printf("write over!\n");
    return 0;
}

